Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Implement multiple entries per day #97

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

vaibhawj
Copy link

@vaibhawj vaibhawj commented Jun 30, 2020

This PR has the changes required to allow multiple entries per day. See Issue #96
It handles -

  • Search
  • Import/export feature
  • Migration (from older file containing one entry)

@vaibhawj vaibhawj force-pushed the master branch 4 times, most recently from 1152e9b to 16ae6ee Compare June 30, 2020 09:30
@vaibhawj vaibhawj marked this pull request as ready for review July 1, 2020 10:31
@ra314
Copy link

ra314 commented Jan 1, 2021

Exporting with this PR results in the same date appearing multiple times if there are multiple entires in a single day. I think the right way would be for the date to only show up once in the case of multiple entries. This occurs with all export formats.

Monday, 14 December 2020

Event 1

Details of event 1

Monday, 14 December 2020

Event 2

Details of event 2

vs

Monday, 14 December 2020

Event 1

Details of event 1

Event 2

Details of event 2

@vaibhawj
Copy link
Author

vaibhawj commented Jan 2, 2021

I think it makes sense for pdf and md exports but I am not sure about json and txt formats as these (json and txt) formats are being used to import exported files from other apps (DayOne and jrnl).

@ra314 have you tried importing the format you suggested to see if it fails any tests or breaks anything?

@ra314
Copy link

ra314 commented Jan 4, 2021

Ah that makes sense. I was only coming at it from an aesthetic point of view and didn't consider json and txt. I agree that it doesn't make sense to do that for the JSON or txt formats since they include timestamps.

@vaibhawj I think making this change just to the pdf and markdown formats as you said would be an improvement.

@vaibhawj
Copy link
Author

@ra314 I have pushed changes for md and pdf exports

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants